package com.example.backend.Assistant;
import dev.langchain4j.service.MemoryId;
import dev.langchain4j.service.SystemMessage;
import dev.langchain4j.service.UserMessage;
import dev.langchain4j.service.spring.AiService;
import dev.langchain4j.service.spring.AiServiceWiringMode;
import reactor.core.publisher.Flux;

@AiService(
        wiringMode = AiServiceWiringMode.EXPLICIT,
        streamingChatModel = "openAiStreamingChatModel",
        chatMemoryProvider = "resChatMemoryProvider",
        tools = {"calculatorTools","restaurantTools"},
        contentRetriever = "contentRetrieverResPincone"
)
public interface RestaurantChatAssistant {
    @SystemMessage(fromResource = "RestaurantPromopt.txt")
    Flux<String> chat(@MemoryId  String memoryId, @UserMessage String userMessage);
}
